Interface IRedbObject<TProps>

Assembly: redb.Core.dll

Typed interface for REDB objects with specific properties type
Extends base IRedbObject adding type-safe access to properties
Provides IntelliSense and compile-time type checking

public interface IRedbObject<TProps> : IRedbObject where TProps : class

Properties

Props

Typed access to object properties

TProps Props { get; set; }

Methods

CloneWithProperties(TProps)

Create object copy with same metadata but new properties

IRedbObject<TProps> CloneWithProperties(TProps newProperties)

ComputeHashForType()

Get new hash based on current properties without changing object

Guid ComputeHashForType()

GetSchemeForTypeAsync()

Get scheme for TProps type (with cache usage)

Task<IRedbScheme> GetSchemeForTypeAsync()

GetStructureByNameAsync(string)

Get structure by field name for TProps type

Task<IRedbStructure?> GetStructureByNameAsync(string fieldName)

GetStructuresForTypeAsync()

Get scheme structures for TProps type (with cache usage)

Task<IReadOnlyCollection<IRedbStructure>> GetStructuresForTypeAsync()

InvalidateCacheForType()

Clear metadata cache for TProps type

void InvalidateCacheForType()

IsHashValidForType()

Check if current hash matches TProps type properties

bool IsHashValidForType()

RecomputeHashForType()

Recompute hash based on current TProps type properties

void RecomputeHashForType()

WarmupCacheForTypeAsync()

Preload metadata cache for TProps type

Task WarmupCacheForTypeAsync()